import {reqOrderList} from '@/api/myorder'
export default {
    state:{
        orderList:[]
    },
    mutations:{
        GETORDER_DATA(state,orderList){
            state.orderList = orderList
        }
    },
    actions:{
        async getOrderList({commit}){
            const res = await reqOrderList()
            // console.log(res);
            commit('GETORDER_DATA',res)
        }
    },
    getters:{

    }
}